#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_database2.py
# author:wmf
# datetime:2021/5/16 22:38
# software: PyCharm
'''
this is function description
'''
# import module your need
import mysql.connector

mydb = mysql.connector.connect(
    host="localhost",
    user="root",
    passwd="1535122923Wmf",
    database='python'
)

mycursor = mydb.cursor()

mycursor.execute("SHOW DATABASES")

for x in mycursor:
    print(x)
